package com.smforj.ssm.mina.test;

import com.smforj.ssm.mina.client.IMinaClent;
import com.smforj.ssm.mina.client.MinaClient;


/**
 * mina 客户端测试类
 * @desp
 * @author ghj
 * @date 2016-3-8 下午6:19:39
 */
public class RunClient {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		IMinaClent client = new MinaClient(); 
		client.setHost("192.168.1.4");
		client.setPort(6789);
        if (client.iconnect()) { 
        	//TsExamineeModel model = new TsExamineeModel();  
        	String msg = new String("p打印测试|YUIYUUUUUUUU|IUIUI");
            client.send(msg); 
  /*          @SuppressWarnings("resource")
			Scanner scanner = new Scanner(System.in); 
            while (scanner.hasNext()) { 
                client.send(scanner.next());

            }*/
            client.close();
        }
	}

}
